package com.ruoyi.buss.qmcy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.qmcy.mapper.QmcyCustDgdsMapper;
import com.ruoyi.buss.qmcy.domain.QmcyCustDgds;
import com.ruoyi.buss.qmcy.service.IQmcyCustDgdsService;

/**
 * 对公对私帐户Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class QmcyCustDgdsServiceImpl implements IQmcyCustDgdsService 
{
    @Autowired
    private QmcyCustDgdsMapper qmcyCustDgdsMapper;

    /**
     * 查询对公对私帐户
     * 
     * @param zh 对公对私帐户ID
     * @return 对公对私帐户
     */
    @Override
    public QmcyCustDgds selectQmcyCustDgdsById(String zh)
    {
        return qmcyCustDgdsMapper.selectQmcyCustDgdsById(zh);
    }

    /**
     * 查询对公对私帐户列表
     * 
     * @param qmcyCustDgds 对公对私帐户
     * @return 对公对私帐户
     */
    @Override
    public List<QmcyCustDgds> selectQmcyCustDgdsList(QmcyCustDgds qmcyCustDgds)
    {
        return qmcyCustDgdsMapper.selectQmcyCustDgdsList(qmcyCustDgds);
    }

    /**
     * 新增对公对私帐户
     * 
     * @param qmcyCustDgds 对公对私帐户
     * @return 结果
     */
    @Override
    public int insertQmcyCustDgds(QmcyCustDgds qmcyCustDgds)
    {
        return qmcyCustDgdsMapper.insertQmcyCustDgds(qmcyCustDgds);
    }

    /**
     * 修改对公对私帐户
     * 
     * @param qmcyCustDgds 对公对私帐户
     * @return 结果
     */
    @Override
    public int updateQmcyCustDgds(QmcyCustDgds qmcyCustDgds)
    {
        return qmcyCustDgdsMapper.updateQmcyCustDgds(qmcyCustDgds);
    }

    /**
     * 批量删除对公对私帐户
     * 
     * @param zhs 需要删除的对公对私帐户ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustDgdsByIds(String[] zhs)
    {
        return qmcyCustDgdsMapper.deleteQmcyCustDgdsByIds(zhs);
    }

    /**
     * 删除对公对私帐户信息
     * 
     * @param zh 对公对私帐户ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustDgdsById(String zh)
    {
        return qmcyCustDgdsMapper.deleteQmcyCustDgdsById(zh);
    }
}
